package it.globalgamejam.scar.menu 
{
	import it.globalgamejam.scar.Assets;
	import it.globalgamejam.scar.game.GameWorld;
	import it.globalgamejam.scar.game.Puzzle;
	import it.globalgamejam.scar.menu.stuff.PlayGame;
	import net.flashpunk.Entity;
	import net.flashpunk.FP;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.tweens.misc.VarTween;
	import net.flashpunk.utils.Draw;
	import net.flashpunk.World;
	
	/**
	 * ...
	 * @author N1xx1
	 */
	public class MenuWorld extends World
	{
		
		public function MenuWorld()
		{
			var background:Entity = new Entity(0, 0);
			background.graphic = new Image(Assets.BACKGROUND);
			add(background);
			
			var button:PlayGame = new PlayGame(FP.halfWidth - 110, FP.height - 200);
			add(button);
		}
		
		override public function render():void 
		{
			super.render();
			
			var o:Array = new Array();
			getAll(o);
			for each (var e:Entity in o)
			{
				//Draw.hitbox(e, true, 0xFF0000, 0.5);
			}
		}
	}

}